package com.zryc.shop.sms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zryc.shop.sms.entity.HomeAdvertise;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 首页轮播广告表 服务类
 * </p>
 *
 * @author zhaozhao
 * @since 2024-01-18
 */
public interface IHomeAdvertiseService extends IService<HomeAdvertise> {

    /**
     * 广告列表
     *
     * @param name
     * @param type
     * @param endTime
     * @param pageNum
     * @param pageSize
     * @return
     */
    Page<HomeAdvertise> list(String name, Integer type, String endTime, Integer pageNum, Integer pageSize);

    /**
     * 修改广告状态
     *
     * @param id
     * @param status
     * @return
     */
    Object updateStatus(Long id, Integer status);

    /**
     * 更新广告内容
     *
     * @param id
     * @param advertise
     * @return
     */
    Object updateAdvertise(Long id, HomeAdvertise advertise);
}
